﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="DetailedSearch.aspx.cs" Inherits="DetailedSearch" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">

    <ext:Panel ID="Panel1" runat="server" Title="Detailed Search" PaddingSummary="5px 5px 0"
        Width="790px" Frame="true" ButtonAlign="Center" Layout="Form">
        <Items>
            <ext:DropDownField ID="Field1" runat="server" TriggerIcon="SimpleArrowDown" FieldLabel="Type">
                <%--bu dropdownlist veritabanı sorgusuyla doldurulsa daha iyi olabilir.--%>
                <Component>
                    <ext:Panel ID="Panel2" runat="server" Height="220" Layout="Accordion">
                        <Items>
                            <ext:MenuPanel ID="MenuPanel1" runat="server" Title="House" Icon="House">
                                <Menu ID="Menu1" runat="server">
                                    <Items>
                                        <ext:MenuItem ID="MenuItem1" runat="server" Text="Daire" />
                                        <ext:MenuItem ID="MenuItem2" runat="server" Text="Yazlık" />
                                        <ext:MenuItem ID="MenuItem3" runat="server" Text="Residance" />
                                        <ext:MenuItem ID="MenuItem4" runat="server" Text="Devremülk" />
                                        <ext:MenuItem ID="MenuItem5" runat="server" Text="Müstakil Ev" />
                                        <ext:MenuItem ID="MenuItem6" runat="server" Text="Prefabrik Ev" />
                                    </Items>
                                    <Listeners>
                                        <ItemClick Handler="#{Field1}.setValue('House - '+menuItem.text);" />
                                    </Listeners>
                                </Menu>
                            </ext:MenuPanel>
                            <ext:MenuPanel ID="MenuPanel2" runat="server" Title="Workplace" Icon="Building">
                                <Menu ID="Menu2" runat="server">
                                    <Items>
                                        <ext:MenuItem ID="MenuItem7" runat="server" Text="Dükkan & Mağaza" />
                                        <ext:MenuItem ID="MenuItem8" runat="server" Text="Büro & Ofis" />
                                        <ext:MenuItem ID="MenuItem9" runat="server" Text="Depo" />
                                        <ext:MenuItem ID="MenuItem10" runat="server" Text="Fabrika" />
                                        <ext:MenuItem ID="MenuItem11" runat="server" Text="Komple Bina" />
                                        <ext:MenuItem ID="MenuItem12" runat="server" Text="Restorant & Lokanta" />
                                        <ext:MenuItem ID="MenuItem13" runat="server" Text="Market" />
                                    </Items>
                                    <Listeners>
                                        <ItemClick Handler="#{Field1}.setValue('Building - '+menuItem.text);" />
                                    </Listeners>
                                </Menu>
                            </ext:MenuPanel>
                            <ext:MenuPanel ID="MenuPanel3" runat="server" Title="Plot" Icon="Map">
                                <Menu ID="Menu3" runat="server">
                                    <Items>
                                        <ext:MenuItem ID="MenuItem14" runat="server" Text="Çiftlik" />
                                        <ext:MenuItem ID="MenuItem15" runat="server" Text="Maden Ocağı" />
                                        <ext:MenuItem ID="MenuItem16" runat="server" Text="Depo & Antrepo" />
                                        <ext:MenuItem ID="MenuItem17" runat="server" Text="Otopark" />
                                        <ext:MenuItem ID="MenuItem18" runat="server" Text="Sulama" />
                                    </Items>
                                    <Listeners>
                                        <ItemClick Handler="#{Field1}.setValue('Map - '+menuItem.text);" />
                                    </Listeners>
                                </Menu>
                            </ext:MenuPanel>
                        </Items>
                    </ext:Panel>
                </Component>
            </ext:DropDownField>
            
            <ext:CompositeField ID="CompositeField1" runat="server" FieldLabel="Room Count" AnchorHorizontal="100%">
                <Items>
                    <ext:TextField ID="TextField1" runat="server" Width="50" />
                    <ext:TextField ID="TextField2" runat="server" Width="50" />
                </Items>
            </ext:CompositeField>
            <ext:CompositeField ID="CompositeField2" runat="server" FieldLabel="Price Range" AnchorHorizontal="100%">
                <Items>
                    <ext:TextField ID="TextField3" runat="server" Width="75" />
                    <ext:TextField ID="TextField4" runat="server" Width="75" />
                </Items>
            </ext:CompositeField>
            <ext:DropDownField ID="DropDownField2" runat="server" Text="Select city" FieldLabel="City" >            
            </ext:DropDownField>
            <ext:DropDownField ID="DropDownField3" runat="server" Text="Select town" FieldLabel="Town">
            </ext:DropDownField>
            
            <ext:CompositeField ID="CompositeField3" runat="server" FieldLabel="m2" AnchorHorizontal="100%">
                <Items>                    
                    <ext:TextField ID="TextField6" runat="server" Width="50" />
                    <ext:TextField ID="TextField5" runat="server" Width="50" />
                </Items>
            </ext:CompositeField>            
            
            <ext:DropDownField ID="DropDownField1" runat="server" TriggerIcon="SimpleArrowDown" FieldLabel="Case">
                <%--bu dropdownlist veritabanı sorgusuyla doldurulsa daha iyi olabilir.--%>
                <Component>
                                                                         
                            <ext:MenuPanel ID="MenuPanel6" runat="server" Title="Case" Icon="Money">
                                <Menu ID="Menu6" runat="server">
                                    <Items>
                                        <ext:MenuItem ID="MenuItem32" runat="server" Text="Satılık" />
                                        <ext:MenuItem ID="MenuItem33" runat="server" Text="Kiralık" />                                        
                                    </Items>
                                    <Listeners>
                                        <ItemClick Handler="#{DropDownField1}.setValue(menuItem.text);" />
                                    </Listeners>
                                </Menu>
                            </ext:MenuPanel>
                        
                    
                </Component>
            </ext:DropDownField>
        </Items>
        <Buttons>
            <ext:Button ID="Button1" runat="server" Text="Search" />
            <ext:Button ID="Button2" runat="server" Text="Clear" />
        </Buttons>
    </ext:Panel>
</asp:Content>
